				<div class="span10"> <!-- SEEDNIA: CENTER  -->
					<div class="navbar ">
						<div class="navbar-inner">
							<div class="container">
								<a class="brand" href="#">Goal: <?php echo $activeProject->name; ?></a>
								<div class="nav-collapse pull-right">
									<ul class="nav">
										<li class="active"><a href="#"><i class="icon-cog"></i>Settings</a></li>
										<li><a href="#stats">Statistics</a></li>
									</ul>
								</div><!--/.nav-collapse -->
								</ul>
							</div>
						</div>
					</div>

<?php 
$contentSpan = "span9";
if ($paneRight == null) { 
	$contentSpan  = "span12";
}
?>
					<div class="row-fluid">
						<div class="<?php echo $contentSpan ?>"> <!-- SEEDNIA: PROJECT INFO  -->

							<div class="accordion" id="projectInfo">
							<div class="accordion-group">
							  <div class="accordion-heading">
								<a class="accordion-toggle" data-toggle="collapse" data-parent="#projectInfo" href="#projectDetails">
									<?php echo $activeProject->name; ?> | <?php echo datetime_parse_from_std($activeProject->planStartDate)->format('Y-m-d') . ' ~ 2012-05-20'; ?>
								</a>
							  </div>
							  <div id="projectDetails" class="accordion-body collapse">
								<div class="accordion-inner">
								<p><?php print_r($activeProject); ?></p>
								<p>Milestones
								</p>
								</div>
							  </div>
							</div>
							</div>

							
							<form class="form-actions form-inline" name="PostForm" action="<?php echo controller_base_path($requestContext); ?>/Post/add" method="post" >
								<input type="hidden" id="projectSid" name="projectSid" value="<?php echo $activeProject->sid; ?>" />
								<fieldset>
									<div class="control-group">
										<label class="control-label" for="category">Status Feed</label>
										<div class="controls">
											<?php echo Form::select('categorySid', $ref_categories, null); ?>
										</div>
									</div>
									<div class="control-group">
										<textarea id="postBody" name="postBody" class="span12"></textarea>
										<label class="error" for="postBody" id="postBody_error">This field is required.</label>
									</div>
									<div class="control-group">
										<input id="tagsCsv" name="tagsCsv" />
									</div>
									<div class="control-group">
										<div class="controls">
											<button type="submit" class="btn">Post</button>
										</div>
									</div>
								</fieldset>
							</form>
							
							<!-- STREAMS -->
							<h6>Stream</h6>
							<hr />
							
<?php foreach ($posts as $post) {?>
							<div style="width:100%; display:inline-block;">
								<img src="img/profile-pic.jpg" style="float:left; padding:5px">
								<div style="margin-right:50px"><b><?php echo $post->creatorDto->firstName.' '.$post->creatorDto->lastName; ?> </b>@ <a href="#">Project 1</a><br />
									<?php echo $post->body; ?>
<?php 
if ( isset($post->commentDtos) ) {
	foreach ($post->commentDtos as $comment) {
?>									
									<blockquote>
										<?php echo $comment->body; ?>
									</blockquote>
<?php 
	}
} ?>
									<div>
										<a href="#">Comment</a> | <?php echo datetime_parse_from_std($post->createDt)->format('y-m-d'). ' ('. time_ago($post->createDt).' ago)'; ?>
										<form class="quick-form" name="CommentForm" action="<?php echo controller_base_path($requestContext); ?>/Post/addcomment" method="post"><input type="hidden" id="targetSid" name="targetSid" value="<?php echo $post->sid ?>" /><input id="body" name="body" /></form>
									</div>
								</div>
							</div>
							<hr />
<?php } ?>
							
						</div>

<?php if ($paneRight != null) { ?>
						<div class="span3"> <!-- SEEDNIA: RIGHT SIDEBAR INSIDE CENTER -->
							
<?php echo $paneRight ?>
							
						</div>
<?php } ?>
						
					</div>  <!-- /row (inner) -->
				</div> <!-- /span10 (main content) -->

<script type="text/javascript">
// FYI jQuery: multiple $(document).ready() is possible.
$(document).ready(function() {
	
	$('.quick-form').each(function() {
        $('input').keypress(function(e) {
            // Enter pressed?
            if(e.which == 10 || e.which == 13) {
				//alert ($('input').val());
                this.form.submit();
            }
        });
    });
});
</script>
